home *** CD-ROM | disk | FTP | other *** search
- TABLE OF CONTENTS
-
- CManager.library/CManager.library
- CManager.library/CM_AddEntry
- CManager.library/CM_AllocCMData
- CManager.library/CM_AllocEntry
- CManager.library/CM_FreeData
- CManager.library/CM_FreeEntry
- CManager.library/CM_FreeHandle
- CManager.library/CM_GetEntry
- CManager.library/CM_GetOption
- CManager.library/CM_GetString
- CManager.library/CM_LoadCurrentUserData
- CManager.library/CM_LoadData
- CManager.library/CM_SaveData
- CManager.library/CM_StartCManager
- CManager.library/CM_StartManager
- CManager.library/CManager.library
-
- CManager.library offers an easy way to create a global bookmarks
- system.
-
- It handles all the low level stuff to load and save a complete
- database of bookmarks.
-
- If you are not developing a CManager application, you will need
- just a couple of functions such as CM_AddEntry(), to add an entry
- in a database and CM_StartManager() to start a CManager instance.
-
- CManager.library is copyright by Simone Tellini.
- It was released and the terms of the GNU Public Licence II.
-
- Version 21+ are written by and they are copyright by Alfonso
- Ranieri <alforan@tin.it>.
-
- CManager.library/CM_AddEntry
-
- NAME
- CM_AddEntry - adds an entry
-
- SYNOPSIS
- result = CM_AddEntry(entry);
- D0 A0
-
- BOOL CM_AddEntry( APTR );
-
- FUNCTION
- Add an entry to the current database.
-
- The entry is added at the head of its root group.
-
- Note that entry is copied.
-
- INPUTS
- entry - the entry to add
-
- RESULT
- result - a boolean
-
- CManager.library/CM_AllocCMData
-
- NAME CM_AllocCMData - allocates and initializes a CMData
- structure
-
- SYNOPSIS
- data = CM_AllocCMData();
- D0
-
- struct CMData *CM_AllocCMData( void );
-
- FUNCTION
- Allocate a CMData structure and initialize it. The result
- returned must be freed with CM_FreeData() .
-
- INPUT
- none
-
- RESULT
- data - CMData structure ptr or NULL.
-
- SEE
- CM_FreeData()
-
- CManager.library/CM_AllocEntry
-
- NAME
- CM_AllocEntry - allocates a CM entry
-
- SYNOPSIS
- entry = CM_AllocEntry(type);
- D0 D0
-
- APTR CM_AllocEntry( ULONG );
-
- FUNCTION
- Allocates a CM entry of Type type. The result returned must
- be freed with CM_FreeEntry() .
-
- INPUT
- type - the Type of the entry, one of CME_XXX values.
-
- RESULT
- entry - the entry or NULL
-
- SEE
- CM_FreeEntry()
-
- CManager.library/CM_FreeData
-
- NAME
- CM_FreeData - frees CMData
-
- SYNOPSIS
- CM_FreeData(data);
- A0
-
- void CM_FreeData(APTR);
-
- FUNCTION
- Frees data allocated with CM_AllocData() .
-
- INPUT
- data - data to free
-
- RESULT
- none
-
- SEE
- CM_AllocData()
-
- CManager.library/CM_FreeEntry
-
- NAME
- CM_FreeEntry - frees a CM entry
-
- SYNOPSIS
- CM_FreeEntry(entry);
- A0
-
- void CM_FreeEntry(APTR);
-
- FUNCTION
- Frees an entry allocated with CM_FreeEntry() .
-
- INPUT
- entry - the entry to free
-
- RESULT
- none
-
- SEE
- CM_AllocEntry()
-
- CManager.library/CM_FreeHandle
-
- NAME
- CM_FreeHandle - frees a CMHandle
-
- SYNOPSIS
- CM_FreeHandle(handle);
- A0
-
- void CM_FreeHandle(APTR);
-
- FUNCTION
- Frees a CMHandle, result of CM_StartManager() .
-
- INPUT
- handle - the handle to free
-
- RESULT
- none
-
- SEE
- CM_StartManager()
-
- CManager.library/CM_GetEntry
-
- NAME
- CM_GetEntry - get an entry
-
- entry = CM_GetEntry(handle,flags);
- D0 A1 D0
-
- APTR CM_GetEntry(APTR,ULONG);
-
- FUNCTION
- Get one entry from a CManager instance.
-
- handle is the result from a CM_StartManager() call.
-
- flags is a inclusive or of:
-
- - CMGE_USER
- - CMGE_WWW
- - CMGE_FTP
- - CMGE_CHAT
- - CMGE_TELNET
- The entry to get is of one of the Type specified
-
- - CMGE_MULTISELECT
- If supplied, the result is a struct MinList * , the nodes
- of which are the entries selected; If not supplied, the
- result is an APTR to the selected entry.
-
- INPUT
- handle - a CMHandle
- flags - see above
-
- RESULT
- result - see above and be prepared to get NULL
-
- CManager.library/CM_GetOption
-
- NAME
- CM_GetOption - reads a single CManager.library option
-
- value = CM_GetOption(option);
- D0 D0
-
- ULONG CM_GetOption(ULONG);
-
- FUNCTION
- Reads one CManager.library option.
-
- options is one of:
-
- - CMO_AvoidGenesis BOOL
- Indicates if the env var CManager_AvoidGenesis is set to 1
-
- INPUT
- option - the option to read
-
- RESULT
- value - the value of option
-
- CManager.library/CM_GetString
-
- NAME
- CM_GetString - gets a localized CM string
-
- SYNOPSIS
- str = CM_GetString(id);
- D0 D0
-
- STRPTR CM_GetString(ULONG);
-
- FUNCTION
- Returns a localized CManager string.
-
- INPUT
- id - the id of the string to get
-
- RESULT
- str - the localized string, or ""
-
- CManager.library/CM_LoadCurrentUserData
-
- NAME
- CM_LoadCurrentUserData - load currents logged user data
-
- SYNOPSIS
- data = CM_LoadCurrentUserData(ask);
- D0 D0
-
- struct CMData *CM_LoadCurrentUserData( BOOL );
-
- FUNCTION
- Loads current Genesis logged user data.
-
- If ask is TRUE and there is no current user, the function
- asks to the user to login. If Genesis is not installed in the
- system or the environment var CManager_AvoidGenesis is set to
- 1, the function loads CManager Default.data . So the function
- never fails, but if not enough memory is available.
-
- INPUT
- ask - see above
-
- RESULT
- data - a CMData structure ptr
-
- SEE
- CM_FreeData()
- CM_LoadData()
-
- CManager.library/CM_LoadData
-
- NAME
- CM_LoadData - loads CM data
-
- SYNOPSIS
- result = CM_LoadData(path,data,user);
- D0 A0 A1 A2
-
- BOOL CM_LoadData( STRPTR, struct CMData *, STRPTR );
-
- FUNCTION
- Loads CM data. data is filled; it must have been allocated
- with CM_AllocCMData() (or setup by hands).
-
- path is the complete path to the file to load.
-
- if user is not NULL and not "", it must be the user that
- saved the data.
-
- INPUT
- path - complete path to the file to load
- data - structure to fill
- user - user that saved the data or NULL or ""
-
- RESULT
- result - a boolean
-
- CManager.library/CM_SaveData
-
- NAME
- CM_SaveData - saves CM data
-
- SYNOPSIS
- CM_SaveData(path,data,user);
-
- void CM_SaveData( STRPTR, struct CMData *, STRPTR );
-
- FUNCTION
- Saves CMData stored in data.
-
- path is the complete path to the file to create.
-
- If user is not NULL, it is saved in the data; see
- CM_LoadData().
-
- INPUT
- path - complete path to the file to write
- data - data to save
- user - user to use
-
- RESULT
- none
-
- SEE
- CM_LoadData().
-
- CManager.library/CM_StartCManagerA
-
- NAME
- CM_StartCManagerA - starts a CManager istance
-
- SYNOPSIS
- handle = CM_StartCManagerA(attrs)
- D0 A0 A1
-
- APTR CM_StartCManager( struct TagItems *);
-
- handle = CM_StartManager(tag1,...)
- D0 A0
-
- APTR CM_StartCManager( Tag1, ... );
-
- FUNCTION
- Starts a CM instance and returns its handle. If you call
- CM_FreeHandle(), the CM instance is closed. Remember to call
- CM_FreeHandle() before closing CManager.library .
-
- The attributes you may pass are:
-
- - SCMA_File
- The data to load, default NULL
-
- - SCMA_PubScreen
- Public screen name to open on, default NULL
-
- - SCMA_HideUsers
- Hide users, default FALSE
-
- - SCMA_HideWWW
- Hide WWW sites, default FALSE
-
- - SCMA_HideFTP
- Hide FTP sites, default FALSE
-
- - SCMA_HideChat
- Hide chats, default FALSE
-
- - SCMA_HideTelnet
- Hide telnet hosts, default FALSE
-
- This is the new version of CM_StartManager().
- Use it in your application!.
-
- RESULT
- handle - the CM handle or NULL
-
- SEE
- CM_StartManager()
-
- CManager.library/CM_StartManager
-
- NAME
- CM_StartManager - starts a CManager instance
-
- SYNOPSIS
- handle = CM_StartManager(file,screen);
- D0 A0 A1
-
- APTR CM_StartManager( STRPTR, STRPTR );
-
- FUNCTION
- THIS FUNCTION IS OBSOLETE. Use CM_StartCManagerA().
-
- Starts a CM instance and returns its handle. If you call
- CM_FreeHandle(), the CM instance is closed. Remember to call
- CM_FreeHandle() before closing CManager.library .
-
- INPUT
- file - data to load, may be NULL
- screen - public screen name to open on, may be NULL
-
- RESULT
- handle - the CM handle or NULL
-
- SEE
- CM_StartCManagerA()
-